//
//  HomeViewController.h
//  Bracelet
//
//  Created by jing zhao on 2/16/15.
//  Copyright (c) 2015 jing zhao. All rights reserved.
//


#import <UIKit/UIKit.h>
#import "REFrostedViewController.h"
#import <bongSDK/bongSDK.h>
#import <CoreBluetooth/CoreBluetooth.h>
#import "LoadingPageController.h"
#import "AlertView.h"
#import "ConfirmView.h"

#if !defined(IOS_VERSION)
#define IOS_VERSION  [[[UIDevice currentDevice] systemVersion] intValue]
#endif

@class MainViewController;

@interface HomeViewController : UIViewController<bongSDKDelegate,CBCentralManagerDelegate,AlertViewDelegate,ConfirmRetryDelegate>{
    LoadingPageController *_loadingPage;
    BOOL _requestAuthorization;
    UIButton *_button;
    NSInteger _pageIndex;
    CBCentralManagerState _blueToothStatus;
    BOOL _isBlueErrorShow;
    BOOL  _isSearchingBracelet;
    
    NSInteger _bleErrorTime;
    NSInteger _dataServerErrorCode;
    NSInteger _bongErrorCode;
}

- (IBAction)showMenu;

@end

